<template>
	<view :style="themeColor">
		<view class="page">
			<view
				class="flex flex-direction flex-wrap align-stretch justify-center benben-position-layout flex helpDetails_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-stretch justify-between helpDetails_fd0_0'>
					<view class='flex flex-wrap align-center helpDetails_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  helpDetails_fd0_0_c0_c0'>&#xe794;</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<text class='helpDetails_fd0_0_c1_c0' v-if="id==19">用户协议</text>
						<text class='helpDetails_fd0_0_c1_c0' v-else>隐私政策</text>
					</view>
					<view class='flex align-center justify-end helpDetails_fd0_0_c2'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout helpDetails_flex_1">
				<jyf-parser class='helpDetails_fd1_0' :html="dataDetails.content | richTextFormat">
				</jyf-parser>
			</view>

			<!---flex布局flex布局结束-->


		</view>
	</view>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},


		data() {
			return {
				"dataDetails": {
					"aid": "",
					"title": "",
					"create_time": "",
					"content": "",
					"thumb": "",
					"category_name": ""
				},
				"id": "2"
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			let {
				id
			} = options
			if (id !== undefined) this.id = id
			this.getDetailFunc()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//文章列表-获取文章详情
			async getDetailFunc() {
				//请求方法
				//数据验证

				let datadataDetails = await this.$api.get(global.apiUrls.post641568f1b6f87, {
					column_id: this.id
				});

				if (datadataDetails.data.code != 1) {
					this.$message.info(datadataDetails.data.msg);
					return
				}
				let infodataDetails = datadataDetails.data;
				this.dataDetails = infodataDetails.data

			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: rgba(248, 248, 248, 1);
		background-size: 100% auto;
	}

	.helpDetails_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.helpDetails_fd0_0_c2 {
		padding: 0rpx 0rpx 0rpx 0rpx;
		width: 100rpx;
	}

	.helpDetails_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: var(--benbenFontColor0);
	}

	.helpDetails_fd0_0_c0_c0 {
		font-size: 36rpx;
		font-weight: 400;
		color: #333;
	}

	.helpDetails_fd0_0_c0 {
		width: 100rpx;
	}

	.helpDetails_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		line-height: 88rpx;
	}

	.helpDetails_flex_1 {
		padding: 0rpx 32rpx 32rpx 32rpx;
		margin: 0rpx 0rpx 64rpx 0rpx;
	}

	::v-deep .helpDetails_fd1_0 {
		width: 100%;
		margin: 0rpx 0rpx 180rpx 0rpx;
	}
</style>